package lanqiao;

public class CubesNumber {
    public static void main(String[] args) {
        int total = 2024;
        int lenth = 0;
        while(total > Math.pow(lenth,3)) {
            lenth++;
        }
        int tatalNeed = (int)Math.pow(lenth,3);
        int cubesToBuy = tatalNeed - total;
        System.out.println(cubesToBuy);
    }
}
